package tt.dz.biz.job;

import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import tt.dz.biz.service.account.DividendMonitorService;
import tt.dz.common.AppContxtUtil;
import tt.dz.common.DzConstants;
import tt.dz.common.DzConstants.sysJob;
import tt.dz.common.LogUtil;

public class AccountingMonitorJob
  extends AbstractJob
{
  protected void executeJob(JobExecutionContext arg0)
    throws JobExecutionException
  {
    try
    {
      DividendMonitorService dividendMonitorService = (DividendMonitorService)AppContxtUtil.getBean("dividendMonitorService");
      dividendMonitorService.monitorTranInfoState();
    }
    catch (Exception e)
    {
      LogUtil.error("交易数据记账情况监控服务异常", e);
    }
  }
  
  protected String getJobCode()
  {
    return DzConstants.sysJob.TRAN_ACCOUNTING_MONITOR_JOB.value();
  }
}
